package com.ysx.article.feign;

import com.ysx.article.dto.ApArticleDto;
import com.ysx.article.pojo.ApArticle;
import com.ysx.common.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "toutiao-article", path = "/ApArticleDto", contextId = "saveDto")
public interface ApArticleDtoFeign {
    @PostMapping("/dto")
    public Result<ApArticle> saveDto(@RequestBody ApArticleDto apArticleDto);
}
